data "alicloud_zones" "main" {
}

resource "alicloud_vswitch" "vswitch" {
  vpc_id            = var.vpc_id

  count             = length(var.vswitch_cidr)
  cidr_block        = var.vswitch_cidr[count.index]
  zone_id           = var.zone_id
  vswitch_name      = "${var.vswitch_name}-${var.zone_id}"
}


